# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  # Pick a unique cookie name to distinguish our session data from others'
  session :session_key => '_bliss_session_id'
  protected
    include ApplicationHelper
    
    def check_authenticated?
      return true if authenticated?
      session[:original_uri] = request.request_uri if request.get?
      redirect_to login_url
      false
    end
end
